import request from "@/utils/request";

// 查询图标列表
export function listIcon(query) {
  return request({
    url: "/applet/icon/list",
    method: "get",
    params: query,
  });
}

// 查询图标详细
export function getIcon(id) {
  return request({
    url: "/applet/icon/" + id,
    method: "get",
  });
}

// 新增图标
export function addIcon(data) {
  return request({
    url: "/applet/icon",
    method: "post",
    data: data,
  });
}

// 修改图标
export function updateIcon(data) {
  return request({
    url: "/applet/icon",
    method: "put",
    data: data,
  });
}

// 删除图标
export function delIcon(id) {
  return request({
    url: "/applet/icon/" + id,
    method: "delete",
  });
}

// 查询加盟商
export function getListFranchisee() {
  return request({
    url: "/applet/league/list",
    method: "get",
    params: {
      leStatus : 1
    },
  });
}
